package com.edu.boot.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.edu.boot.entity.NotesManage;
import com.edu.boot.entity.Vo.QyNotesManageVo;
import com.edu.boot.entity.Vo.RecruitmentAllInfoVo;
import com.edu.boot.entity.Vo.RecruitmentAndSonNotesManageVo;
import com.edu.boot.service.NotesManageService;
import com.edu.boot.mapper.NotesManageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
* @description 针对表【notes_manage】的数据库操作Service实现
*/
@Service
public class NotesManageServiceImpl extends ServiceImpl<NotesManageMapper, NotesManage>
    implements NotesManageService{

    @Autowired
    NotesManageMapper notesManageMapper;
    @Override
    public List<RecruitmentAndSonNotesManageVo> getNotesManageDistinctBossId(Integer bossId) {
        return notesManageMapper.getNotesManageDistinctBossId(bossId);
    }

    @Override
    public Integer getMyNotesCount(Integer uid,Integer recId) {
        return notesManageMapper.getMyNotesCount(uid,recId);
    }
    
    @Override
    public IPage<QyNotesManageVo> getQyRecOfferList(IPage<NotesManage> page, String recName,
                                                    String offerStatus, Integer qyId, Integer pid) {
        IPage<QyNotesManageVo> qyNoteManageList = notesManageMapper.getQyNoteManageList(page, recName, offerStatus,
                                                                                        qyId, pid);
        return qyNoteManageList;
    }
    //TODO: 测试
    public void getRecruitmentAllInfoVo(Set<Integer> recIdSet) {
        System.out.println("测试，没有任何作用");
    }
}




